<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%String path = request.getContextPath();%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/sys.tld" prefix="sys" %>
<%@ taglib uri="/WEB-INF/tld/ui.tld" prefix="ui" %>
<%@ taglib uri="/WEB-INF/tld/fmt.tld" prefix="fmt"%>

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <c:set var="ctx" value="${pageContext.request.contextPath}"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <jsp:include page="../../import.jsp" flush="true"/>
    <title>报告</title>
    <input type="hidden"  value="${prjId}"   name="prjId" id="prjId"/>

    <input type="hidden"  value="${isShowAc}"   name="isShowAc" id="isShowAc"/>
</head>
<style>
    th{text-align: center;}
    tr{height: 35px;}
    td{text-align: center;}

    .c_p_icon{
        display: inline-block;
        width: 20px;
    }

    .c_content{
        display: none;
    }
    .c_icon{
        background-position: 0 -140px;
    }
    .c_display .c_icon{
        background-position: 0 -160px;
    }
    .c_detail{
        display: none;
    }
    .c_display.c_detail{
        display: block;
    }

</style>
<script type="text/javascript">
    function toggerDetail(id) {
        $("#ia"+id+",#aa"+id).toggleClass("c_display");
    }
</script>
<body class="iframeBody">
<div class="searchArea">
    <form id="searchBar">
        <c:if test="${brApplyVO!=null}">
                    <table width="1200px" style="min-widows: 1200px;" class="table_full">
                        <tr><td colspan="9"> <h1>报告</h1></td></tr>
                        <tr>
                            <td style="text-align: right;">查询时间:</td>
                            <td colspan="2" style="text-align: left; "> <fmt:formatDate value="${brApplyVO.crtTm}" type="date" pattern="yyyy-MM-dd"/></td>
                            <td style="text-align: right; ">查询范围:</td>
                            <td colspan="2" style=""> <fmt:formatDate value="${brApplyVO.crtTm}" type="date" pattern="yyyy-MM-dd"/> &nbsp;—&nbsp; <fmt:formatDate value="${brApplyVO.endTm}" type="date" pattern="yyyy-MM-dd"/></td>
                            <td style="text-align: right; ">法定代表人:</td>
                            <td colspan="2" style="text-align: left; ">${brApplyVO.usrNm}</td>
                        </tr>
                        <tr>
                            <td style="text-align: right;">证件号:</td>
                            <td colspan="2" style="text-align: left; ">${brApplyVO.certNo}</td>
                            <td style="text-align: right;">联系电话:</td>
                            <td colspan="2" style="text-align: left; ">${brApplyVO.mp}</td>
                            <td style="text-align: right; "></td>
                            <td colspan="2" style="text-align: left; "></td>
                        </tr>
                        <tr style="text-align: center;background-color: #EDEDED" >
                            <td colspan="9"> ----- 涉诉类-----</td>
                           </tr>

                            <tr><td colspan="9">
                            <table width="100%"   >
                                <tr>
                                    <th width="8%">序号</th>
                                    <th width="20%">当事人ID</th>
                                    <th width="10%">案由</th>
                                    <th width="13%">审结时间</th>
                                    <th width="15%">案号</th>
                                    <th width="17%">法院名称</th>
                                    <th width="5%">匹配度</th>
                                    <th width="12%">发布时间</th>
                                </tr>
                                <c:if test="${brApplyVO.brcjwsReportVOList!=null}">
                                <c:forEach items="${brApplyVO.brcjwsReportVOList}" var="BrcjwsReportVO" varStatus="status">
                                <tr>
                                    <td><span class="c_p_icon"><a class="sq-button-hasicon" id="ia${status.index + 1}" href="javascript:toggerDetail(${status.index + 1})"><i class="fa c_icon" aria-hidden="true"></i>${status.index + 1}</a></span></td>
                                    <c:if test="${BrcjwsReportVO.brcjwsSpeLstPartVO!=null}">
                                        <td>${BrcjwsReportVO.brcjwsSpeLstPartVO.partTitle}</td>
                                    </c:if>
                                    <c:if test="${BrcjwsReportVO.brcjwsSpeLstVO!=null}">
                                        <td>${BrcjwsReportVO.brcjwsSpeLstVO.caseCause}</td>
                                        <td>${BrcjwsReportVO.brcjwsSpeLstVO.sortTimeString}</td>
                                        <td>${BrcjwsReportVO.brcjwsSpeLstVO.caseNo}</td>
                                        <td>${BrcjwsReportVO.brcjwsSpeLstVO.court}</td>
                                        <td>${BrcjwsReportVO.brcjwsSpeLstVO.matchRatio}</td>
                                        <td>${BrcjwsReportVO.brcjwsSpeLstVO.sortTimeString}</td>
                                    </c:if>
                                </tr>
                                    <tr style="height: 0px;" >
                                    <td colspan="9">
                                        <divdiv class="field c_detail" style="vertical-align: middle;" id="aa${status.index + 1}">
                                            <p>判决结果</p>
                                            <c:if test="${BrcjwsReportVO.brcjwsSpeLstVO!=null}">
                                                <textarea name="" id="" rows="5" class="l-textarea" style="width:79%"
                                                 value="">${BrcjwsReportVO.brcjwsSpeLstVO.judgeResult}</textarea>
                                            </c:if>
                                        </divdiv>
                                    </td>
                                    </tr>
                                </c:forEach>
                                </c:if>
                            </table>
                            </td></tr>
                            <tr style="text-align: center;background-color: #EDEDED" >
                                <td colspan="9"> ----- 被执行类-----</td>
                            </tr>
                            <tr ><td colspan="9">
                                    <table width="100%"  >
                                        <tr>
                                            <th width="10%">序号</th>
                                            <th width="15%">案件状态</th>
                                            <th width="20%">法院名称</th>
                                            <th width="20%">案号</th>
                                            <th width="10%">执行标的</th>
                                            <th width="15%">立案时间</th>
                                            <th width="5%">被执行人姓名</th>
                                            <th width="15%">证件号</th>
                                        </tr>
                                        <c:if test="${brApplyVO.brcdReportVO.brcdZxggVOList!=null}">
                                            <c:forEach items="${brApplyVO.brcdReportVO.brcdZxggVOList}" var="BrcdZxggVO" varStatus="status">
                                            <tr>
                                                <td>${status.index + 1}</td>
                                                <td>${BrcdZxggVO.caseState}</td>
                                                <td>${BrcdZxggVO.court}</td>
                                                <td>${BrcdZxggVO.caseNo}</td>
                                                <td>${BrcdZxggVO.execMoney}</td>
                                                <td>${BrcdZxggVO.sortTimeString}</td>
                                                <td>${BrcdZxggVO.PNm}</td>
                                                <td>${BrcdZxggVO.certNo}</td>
                                            </tr>
                                            </c:forEach>
                                        </c:if>
                                    </table>

                            </td></tr>

                    </table>
        </c:if>


    </form>
</div>
</div>
<div id="ligergrid1" class="sq-grid"></div>
</body>
</html>